package com.cl.service.impl;

import com.cl.mapper.PostMapper;
import com.cl.pojo.Post;
import com.cl.service.PostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PostServiceImpl implements PostService {
    @Autowired
    private PostMapper postMapper;

    @Override
    public List<Post> queryAll() {
        return postMapper.queryAll();
    }

    @Override
    public Post queryByPostName(String postnam) {
        return postMapper.queryByPostName(postnam);
    }
}
